package com.ruoyi.system.domain;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存物品对象 cs_inventory
 *
 * @author ruoyi
 * @date 2025-10-05
 */
@Data
public class CsInventory implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @JSONField(serializeUsing = com.alibaba.fastjson.serializer.ToStringSerializer.class)
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @JsonSerialize(using = ToStringSerializer.class)
    @JSONField(serializeUsing = com.alibaba.fastjson.serializer.ToStringSerializer.class)
    private Long userId;

    @Excel(name = "用户账户")
    private Long account;

    /**
     * 物品名称
     */
    @Excel(name = "物品名称")
    private String name;

    @Excel(name = "market_hash_name")
    private String marketHashName;

    /**
     * 单个成本均价
     */
    @Excel(name = "单个成本均价")
    private Long unitCost;

    /**
     * 库存数量
     */
    @Excel(name = "库存数量")
    private Long quantity;

    /**
     * 历史盈利
     */
    @Excel(name = "历史盈利")
    private Long historyProfit;

    /**
     * 可售数量
     */
    @Excel(name = "可售数量")
    private Long availableQuantity;

    /**
     * steam单价
     */
    @Excel(name = "steam单价")
    private Long steamPrice;

    /**
     * UU单价
     */
    @Excel(name = "UU单价")
    private Long uuPrice;

    /**
     * C5单价
     */
    @Excel(name = "C5单价")
    private Long c5Price;

    /**
     * Buff单价
     */
    @Excel(name = "Buff单价")
    private Long buffPrice;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setUnitCost(Long unitCost) {
        this.unitCost = unitCost;
    }

    public Long getUnitCost() {
        return unitCost;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setHistoryProfit(Long historyProfit) {
        this.historyProfit = historyProfit;
    }

    public Long getHistoryProfit() {
        return historyProfit;
    }

    public void setAvailableQuantity(Long availableQuantity) {
        this.availableQuantity = availableQuantity;
    }

    public Long getAvailableQuantity() {
        return availableQuantity;
    }

    public void setSteamPrice(Long steamPrice) {
        this.steamPrice = steamPrice;
    }

    public Long getSteamPrice() {
        return steamPrice;
    }

    public void setUuPrice(Long uuPrice) {
        this.uuPrice = uuPrice;
    }

    public Long getUuPrice() {
        return uuPrice;
    }

    public void setC5Price(Long c5Price) {
        this.c5Price = c5Price;
    }

    public Long getC5Price() {
        return c5Price;
    }

    public void setBuffPrice(Long buffPrice) {
        this.buffPrice = buffPrice;
    }

    public Long getBuffPrice() {
        return buffPrice;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("unitCost", getUnitCost())
                .append("quantity", getQuantity())
                .append("historyProfit", getHistoryProfit())
                .append("availableQuantity", getAvailableQuantity())
                .append("steamPrice", getSteamPrice())
                .append("uuPrice", getUuPrice())
                .append("c5Price", getC5Price())
                .append("buffPrice", getBuffPrice())
                .append("createDate", getCreateDate())
                .append("updateDate", getUpdateDate())
                .toString();
    }
}
